package com.way.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Value("${server.port:8080}")
    private String port;

    @GetMapping("/consul")
    public String consul(@Value("${way.info}") String info) {
        return "Consul信息：" + info + "，端口：" + port;
    }

}
